/*******
 * diskMem.h
 *
 * author: Will Lamond
 *
 *
 *
 ******/
#ifndef	_DISKMEM_H_
#define	_DISKMEM_H_
//#include "memory.h"

typedef struct _DISKNODE {
	int pid;
	int base;
	int end;
	int size;
	struct _DISKNODE *next;
} DISKNODE;

typedef struct _DISKLIST {
	DISKNODE *head;
} DISKLIST;


 int addDNode(DISKLIST *list, int base, int end, int pid);

 int removeDNode(DISKLIST *list, int pid);

 int getPidPage(DISKLIST *list, DISKNODE * node, int pid);

 int initDList(DISKLIST **newList);




#endif
